package week2;

public class Teacher extends Person{
    private String teacherId;
    Teacher(){}
    Teacher(String name,int age,String teacherId){
        super(name,age);
        this.teacherId = teacherId;
    }

    @Override
    void showMessage() {
        System.out.println("老师的信息是：姓名："+name+"，年龄"+age+"，工号"+teacherId);

    }
}
